package com.airili.wiki.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author Airili
 * 扫描多个包: @ComponentScan({"com.airili", "com.test"})
 * @SpringBootApplication: 内置的 @ComponentScan 只能扫描被注解的类的子包
 */
@ComponentScan("com.airili")
@MapperScan("com.airili.wiki.mapper")
@EnableScheduling
@EnableAsync
@SpringBootApplication
public class WikiApplication {

	public static void main(String[] args) {
		SpringApplication.run(WikiApplication.class, args);
	}

}
